<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 九号
  Date: 2022/4/2
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>编辑文章</title>
    <link href="${pageContext.request.contextPath}/admin/css/home.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript">
        //添加商品
        function EditArticle() {
            window.location.href = "${pageContext.request.contextPath}/admin/article/ArticleEdit.jsp";
        }
        //删除商品
        function p_del() {
            var msg = "您确定要删除该篇文章吗？";
            if (confirm(msg)==true){
                return true;
            }else{
                return false;
            }
        }
    </script>
</head>
<body>
<jsp:include page="/admin/login/top.jsp"/>
<div class="main">
    <jsp:include page="/admin/login/left.jsp"/>
    <div class="home">
<center>

                <table bgcolor="#fdf8f8" border="0" width="585" rules="all" cellpadding="0" cellspacing="0">

                    <tr height="35" align="right">
                        <td bgcolor="#ceade2">
                            发表时间：${article.pubtime}

                            浏览量：${article.count}
<%--                            发表时间：<%=single.getSdTime() %>&nbsp;&nbsp;&nbsp;&nbsp;--%>
<%--                            评论：<%=single.getReview() %> 条&nbsp;&nbsp;&nbsp;&nbsp;--%>
<%--                            阅读：<%=single.getCount() %> 次&nbsp;&nbsp;&nbsp;&nbsp;--%>
                        </td>
                    </tr>
                    <tr height="15"><td></td></tr>
                    <tr><td align="center"><b><font style="font-size:25px">
                        ${article.title}
                    </font></b></td></tr>
                   <tr><td align="right">
<%--                    <%=single.getCreate()%>：<%=single.getInfo() %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
                   </td></tr>
                    <tr height="15"><td></td></tr>
                    <tr height="200"><td valign="top" style="padding-left:20px;padding-right:20px">
                     ${article.content}
                    </td></tr>

                </table>

    <tr>
              <%--  <input type="button" value="编&nbsp;辑" class="btn_bg" onClick="EditArticle()">
--%>

                <input type="button" value="返&nbsp;回" class="btn_bg" onClick="javascript:window.history.go(-1)">

    </tr>
</center>
    </div>
</div>
<jsp:include page="/admin/login/bottom.jsp"/>
</body>
</html>
